a11y: Realize GtkStackPage parent context before trying to get a ref
authorSebastian Keller <skeller@gnome.org>
Wed, 25 May 2022 12:56:05 +0000 (14:56 +0200)
committerSebastian Keller <skeller@gnome.org>
Wed, 25 May 2022 12:56:05 +0000 (14:56 +0200)
commit6e3dbc42a8b9644350ff582efca97ed2ce8bb0dd
tree52784bc5bc0f30617054714c3166f3813d7249d8
parent36fbbfc5c780bf67b2a2acabc1f4c8011f73a4a0
a11y: Realize GtkStackPage parent context before trying to get a ref

If a context is not realized, calling gtk_at_spi_context_to_ref() will
return a null ref, because its path has not been initialized yet. This
was already done for all other cases in get_parent_context_ref(), but
was missing for the GtkStackPage case.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4944
gtk/a11y/gtkatspicontext.c